#ifndef E22CONTROL_H

#define E22CONTROL_H

typedef struct e22Control
{
    int fd;
    unsigned char *wbuf;       /**< Address of the write buffer */
    unsigned char *rbuf;       /**< Address of the read buffer */
}E22Control;

E22Control* e22ControlInit();
int e22ControlRelease(E22Control* e22Ctrl);
int e22ControlRead(E22Control* e22Ctrl, unsigned char * buf, int bufSize);
int e22ControlWrite(E22Control* e22Ctrl, unsigned char * buf, int bufSize);

#endif